package homework.innerclass.testing;

import homework.innerclass.coding.Ball;
import homework.innerclass.coding.IBall;

import java.util.function.IntBinaryOperator;

public class Test {
    public static void main(String[] args) {
        Ball.Inner_m inner_m=new Ball().new Inner_m();
        if (inner_m != null) {
            inner_m.play();
        }
        System.out.println("==================");
        Ball ball=new Ball();
        ball.info();
        System.out.println("==================");
        Ball.Inner_s inner_s=new Ball.Inner_s();
        inner_s.play();
        System.out.println("==================");

        IBall iBall=new IBall(){
            @Override
            public void play() {
                System.out.println("匿名类打篮球");
            }
            @Override
            public void show() {

            }
        };
        iBall.play();
        System.out.println("==================");
        // 类型声明
        IntBinaryOperator addition = (int a, int b) -> a + b;

    }


}
